﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace Module.Test.Application.Dtos
{
    [DataContract]
    public class CustomDto
    {

        [Key]
        [DataMember(Name = "id")]
        public long Id { get; set; }

        [Required(ErrorMessage = "名称不能为空")]
        [MinLength(1)]
        [MaxLength(10)]
        [DisplayName("名称")]
        [DataMember(Name = "name")]
        public string Name { get; set; }


    }
}
